package day7.Exer;

public class UIteacher extends Teacher {
    private String tool;
    private String subject;

    public UIteacher(String name,int age,String sex,String tool,String subject){
        super(name,age,sex);
        this.tool=tool;
        this.subject=subject;
    }

    public String getTool() {
        return tool;
    }

    public void setTool(String tool) {
        this.tool = tool;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public void selfIntroduce(){
        super.selfIntroduce();
        System.out.println("教大家"+getSubject());
    }
    public void use(){
        System.out.println("用绘制图像的方法");
    }
    public void giveLession(){
        super.giveLession();
        System.out.println("使用"+getTool());
        this.use();
        System.out.println("给大家上"+getSubject()+"课");
    }
}
